﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Cubes.Adapters
{
	public class SqlServer:BaseAdapter
	{
		#region Constructors
		public SqlServer(string database):base(database)
		{
		}
		#endregion
		
		#region Query Ajustments
		public override string AddOffsetLimit(string sqlCommand, int offset, int limit)
		{
			return sqlCommand;
		}
		#endregion

		#region BaseAdapter Implementation
		protected override string AdoProvider
		{
			get { return "System.Data.SqlClient"; }
		}

		protected override string BuildConnectionString()
		{
			return System.Configuration.ConfigurationManager.ConnectionStrings[this.Database].ConnectionString;
		}
		#endregion		
	}
}
